import { 
        CHANGEMASTERTASKSACTIVATE, 
        CHANGEMASTERTASKDATAACTIVATE,
        GETMASTERTASKSSAGA, 
        MASTERCHANGEWORKERTASKSAGA, 
        DELETEMASTERTASKSAGA,
        DOWNLOADTASKEVISAGA,
        UPDATEMASTERTASKSAGA
    } from "../constants";

// 修改前端的雇主用户的任务管理数据
export const ChangeMasterTasksActivate = (obj) => ({
    type: CHANGEMASTERTASKSACTIVATE,
    data: obj
})

// 雇主修改未审批的任务
export const ChangeMasterTasksDataActivate = (obj) => ({
    type: CHANGEMASTERTASKDATAACTIVATE,
    data: obj
})

// 请求后端，获取雇主的任务数据
export const GetMasterTasksSaga = (obj) => ({
    type: GETMASTERTASKSSAGA,
    data: obj
})

// 雇主向后端发送，修改任务状态
export const MasterChangeWorkerTaskSaga = (obj) => ({
    type: MASTERCHANGEWORKERTASKSAGA,
    data: obj
})

// 雇主向后端发送，删除任务，已完成的任务无法删除
export const DeleteMasterTaskSaga = (obj) => ({
    type: DELETEMASTERTASKSAGA,
    data: obj
})

// 雇主向后端发送，下载任务作证材料
export const DownLoadTaskEviSaga = (obj) => ({
    type: DOWNLOADTASKEVISAGA,
    data: obj
})

// 雇主向后端发送修改任务请求
export const UpdateMasterTaskSaga = (obj) => ({
    type: UPDATEMASTERTASKSAGA,
    data: obj
})
